package com.cloud.service;

import java.util.ArrayList;

import com.cloud.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cloud.bean.User;
import com.cloud.mapper.UserMapper;

import javax.annotation.Resource;

@Service
public class AgentService {
	
	@Resource
	private UserMapper userMapper;

	public R queryAll() {
		ArrayList<User> list = userMapper.selectByAgentLevel();
		return new R(0,"",list);
	}

	public R queryInvitate() {
		ArrayList<String> list = userMapper.selectByInvitate();
		return new R(0,"",list);
	}

}
